package org.example.spring_ioc.configuration;

import org.example.spring_ioc.model.UserInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfiguration {
    @Bean
    public UserInfo userInfo(){
        return new UserInfo("zhangsan");
    }

    @Bean
    public UserInfo userInfo1(){
        return new UserInfo("zhangsan");
    }
}
